package com.example.demo.service;

import com.example.demo.entity.ComboMeal;
import com.example.demo.mapper.ComboMealMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ComboMealService {
    @Autowired
    ComboMealMapper comboMealMapper;
    public List<ComboMeal> getComboMealList() {
        return comboMealMapper.selectAll();
    }
    public ComboMeal getComboMealById(int id) {
        return comboMealMapper.getComboMealById(id);
    }
    public void insertComboMeal(ComboMeal comboMeal) {
        comboMealMapper.insert(comboMeal);
    }
}
